package com.evan.designpatterns.proxy.dynamicproxy.cglibproxy;

import org.springframework.cglib.core.DebuggingClassWriter;

import java.net.URL;

/**
 * @author :liujiapeng01
 * @date :2019-03-16 19:39
 **/
public class Test {
    public static void main(String[] args) {
        //String path ="/Users/evan/Develop/workspace/gitee/learning/src/main/java/com/evan/designpatterns/proxy/dynamicproxy/cglibproxy/";

        System.out.println();
        System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, Student.class.getClassLoader().getResource("").getPath());

        Student student = (Student) new CglibProxy().getInstance(Student.class);
        student.study();


    }
}
